import api from '../utils/api';

export async function qryRoles(param) {
  return api.post('/sys/role/qryRoles',{
    data: JSON.stringify(param),
  });
}

export async function create(param) {
  return api.post('/sys/role/create',{
    data: JSON.stringify(param),
  });
}

export async function del(param) {
  return api.post('/sys/role/remove', {
    data: JSON.stringify(param),
  });
}


export async function update(param) {
  return api.post('/sys/role/update',{
    data: JSON.stringify(param),
  });
}

export async function qryPermissionList(param) {
  return api.post('/sys/per/qryAllPermission',{
    data: JSON.stringify(param),
  });
}

export async function getRolePermission(param) {
  return api.post('/sys/per/qryRolePermission',{
    data: JSON.stringify(param),
  });
}

export async function setRolePermission(param) {
  return api.post('/sys/per/setRolePermission',{
    data: JSON.stringify(param),
  });
}


